<div class="data-info" ng-show="roleInfo.moduleIds.indexOf(201051) !== -1">
  <md-toolbar>
    <h2 class="md-toolbar-tools">
      <span>数据库信息展示</span>
      <span flex></span>
      <md-button aria-label="关闭" ui-sref="sas.resourcesWatchData"><i class="glyphicon glyphicon-remove"></i></md-button>
    </h2>
  </md-toolbar>
  <md-content>
    <div>
      <form class="form-horizontal" role="form" name="dbResInfoForm" novalidate>
        <div class="form-ctrl md-whiteframe-z1">
          <div class="form-search" style="height:160px;" ng-class="{true: 'shou'}[!toggle.isFolded]">
            <div>
              <label style="">数据库</label>
              <md-select ng-model="dbResInfo.moduleCode">
                <md-select-label>{{dbResInfo.moduleCode ? _getNames(dbResInfo.moduleCode,'moduleName',selector.moduleCode) : "全部"}}</md-select-label>
                <md-option ng-value="" ng-click="dbResInfo.moduleCode = undefined">全部</md-option>
                <md-option ng-value="moduleCode"  ng-repeat="moduleCode in selector.moduleCode">{{moduleCode.moduleName}}</md-option>
              </md-select>
            </div>
          </div>
          <i class="glyphicon glyphicon-chevron-up shrinkage" ng-show="isQuery" ng-click="toggle.isFolded=false"></i>
          <md-button ng-click="dbInfoQuery()" class="md-fab md-primary md-hue-1" aria-label="Profile">
            <i class="glyphicon glyphicon-search"  ng-show="toggle.isFolded"></i>
            <i class="glyphicon glyphicon-arrow-down" style="margin-top:28px;" ng-show="!toggle.isFolded"></i>
          </md-button>
        </div>
      </form>
      <div class="table-info">
        <div>
          <div class="table-detail">
            <div class="t_r" style="padding: 30px 0px;height:500px;">
              <div class="t_r_t" id="t_r_t">
                <div class="t_r_title">
                  <table class="table table-bordered">
                    <tr>
                       <th width="20%">数据库</th>
                       <th width="20%">数目</th>
                       <th width="20%">描述</th>
                    </tr>
                  </table>
                </div>
              </div>
              <div class="t_r_content" id="t_r_content">
                <table class="table table-bordered">
                  <tr ng-repeat="item in series">
                    <td width="20%" ng-click="getDBUsage(item)">{{item.databaseName}}</td>
                    <td width="20%">{{item.num}}</td>
                    <td width="20%">{{item.description}}</td>
                  </tr>
                </table>
              </div>
              <div ng-if="isQuery">
                <ds-page
                        total-count=pageObj.totalCount
                        page-size=pageObj.pageSize
                        page-itmes=pageItmes
                        param=pageObj.param
                        current-page=pageObj.currentPage
                        go-page="turnToPage(pageObj.param)"
                        show-max-page="5"
                        first-text="<<"
                        last-text=">>"
                        previous-text="<"
                        next-text=">"
                        >
                </ds-page>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </md-content>
</div>